package juc;

import java.util.concurrent.*;

/**
 * @Author wonghiu
 * @Date 2021/8/20 19:23
 * @Version 1.0.1
 */
public class ThreadPoolCheck {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService executorService = Executors.newCachedThreadPool();
        Future<String> submit = executorService.submit(() -> {
            System.out.println("111");
            return "111";
        });
        System.out.println(submit.get());
//        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor();

    }
}
